package c.e.b.h.e.k;

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicLong;

/* compiled from: ExecutorUtils */
public class o0 implements ThreadFactory {
    public final /* synthetic */ String a;
    public final /* synthetic */ AtomicLong b;

    /* compiled from: ExecutorUtils */
    public class a extends d {
        public final /* synthetic */ Runnable a;

        public a(o0 o0Var, Runnable runnable) {
            this.a = runnable;
        }

        public void a() {
            this.a.run();
        }
    }

    public o0(String str, AtomicLong atomicLong) {
        this.a = str;
        this.b = atomicLong;
    }

    public Thread newThread(Runnable runnable) {
        Thread newThread = Executors.defaultThreadFactory().newThread(new a(this, runnable));
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(this.a);
        stringBuilder.append(this.b.getAndIncrement());
        newThread.setName(stringBuilder.toString());
        return newThread;
    }
}
